// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "file:///E:/Workspaces/vscode/mes-management/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/Workspaces/vscode/mes-management/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///E:/Workspaces/vscode/mes-management/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/Workspaces/vscode/mes-management/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///E:/Workspaces/vscode/mes-management/node_modules/unplugin-vue-components/dist/resolvers.js";
import vueDevTools from "file:///E:/Workspaces/vscode/mes-management/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
var __vite_injected_original_import_meta_url = "file:///E:/Workspaces/vscode/mes-management/vite.config.ts";
var vite_config_default = defineConfig({
  // 静态资源基础路径 base。生产环境即打包的时候使用/mes-management目录，在开发环境下使用当前目录
  base: process.env.NODE_ENV === "production" ? "/mes-management" : "./",
  build: {
    outDir: "mes-management"
    // 修改默认输出目录dist为mes-management
  },
  // base: './',
  //自定义本地服务器与proxy代理设置，如果不需要刻意不进行设置
  server: {
    open: true,
    //项目启动时是否在浏览器打开页面
    port: 9e3,
    proxy: {
      "/api": {
        target: "http://localhost:8071",
        changeOrigin: true
        //是否跨域
        // rewrite: (path) => path.replace(/^\/mis/, ""), //因为后端接口有api前缀，所以不需要替换
        // ws: true,                       //是否代理 websockets
        // secure: true, //是否https接口
      }
    }
  },
  plugins: [
    vue(),
    vueDevTools(),
    //引入vue的devtools工具
    AutoImport({
      //element plus 按需导入
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      //element plus 按需导入
      resolvers: [ElementPlusResolver()]
    })
    // legacyPlugin({
    //   targets: ['chrome 52'], // 需要兼容的目标列表，可以设置多个
    //   additionalLegacyPolyfills: ['regenerator-runtime/runtime'] // 面向IE11时需要此插件
    // })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxXb3Jrc3BhY2VzXFxcXHZzY29kZVxcXFxtZXMtbWFuYWdlbWVudFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRTpcXFxcV29ya3NwYWNlc1xcXFx2c2NvZGVcXFxcbWVzLW1hbmFnZW1lbnRcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0U6L1dvcmtzcGFjZXMvdnNjb2RlL21lcy1tYW5hZ2VtZW50L3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnO1xuXG5pbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJztcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJztcblxuLy9lbGVtZW50IHBsdXMgXHU2MzA5XHU5NzAwXHU1QkZDXHU1MTY1XG5pbXBvcnQgQXV0b0ltcG9ydCBmcm9tICd1bnBsdWdpbi1hdXRvLWltcG9ydC92aXRlJztcbmltcG9ydCBDb21wb25lbnRzIGZyb20gJ3VucGx1Z2luLXZ1ZS1jb21wb25lbnRzL3ZpdGUnO1xuaW1wb3J0IHsgRWxlbWVudFBsdXNSZXNvbHZlciB9IGZyb20gJ3VucGx1Z2luLXZ1ZS1jb21wb25lbnRzL3Jlc29sdmVycyc7XG5cbi8vXHU1QkZDXHU1MTY1dnVlXHU3Njg0ZGV2dG9vbHNcdTVER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